package com.rfid.controller;

import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class IndexController {

	@RequestMapping(value="/index.tecsup", method=RequestMethod.GET)
	public String index(HttpSession session){
		if(session.getAttribute("USER_SESSION") != null){
			return "principal";
		}else{
			return "index";
		}
	}
	
}
